Skip to content

Fix cloudflare worker when redirected from AWS Lambda#218

Merged
universe-ops merged 1 commit intomainfrom
fix/worker-script-redirect-params
Apr 16, 2026
Merged

Fix cloudflare worker when redirected from AWS Lambda#218
universe-ops merged 1 commit intomainfrom
fix/worker-script-redirect-params

Conversation

@universe-ops
Copy link
Copy Markdown
Contributor

Changed pkg/clouds/pulumi/cloudflare/registrar.go (the worker script template) to merge query parameters instead of overwriting:

  • Parse both the original request's params and the redirect target's params using URLSearchParams
  • Iterate over original params and only append those not already present in the redirect's URL
  • Redirect params take precedence over original request params

@universe-ops universe-ops requested a review from smecsia April 16, 2026 11:45
@universe-ops universe-ops merged commit 688d8d3 into main Apr 16, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants